//
//  Global.h
//  ShoppingExperience
//
//  Created by LiYinDi on 15-1-5.
//  Copyright (c) 2015年 RuiBen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
@interface Global : NSObject
+(NSUInteger)getHomeCustomID;
+(void)setHomeCustomID:(NSUInteger)customID;
+(void)loginViewController:(UIViewController *)vc;
+(void)loginViewController:(UIViewController *)vc noteStr:(NSString *)noteStr;

+(NSUInteger)getOrderID;
+(void)setOrderID:(NSUInteger)orderID;

+(NSUInteger)getScanID;
+(void)setScanID:(NSUInteger)scanID;

+(NSUInteger)getProductID;
+(void)setProductID:(NSUInteger)productID;

+(NSUInteger)getShopGuideID;
+(void)setShopGuideID:(NSUInteger)memberID;

+(NSUInteger)getStockID;
+(void)setStockID:(NSUInteger)stockID;

+(NSUInteger)getMemberRegisterID;
+(void)setMemberRegisterID:(NSUInteger)styleID;

+(NSUInteger)getStyleDetailID;
+(void)setStyleDetailID:(NSUInteger)styleID;

+(NSUInteger)getShopAffairID;
+(void)setShopAffairID:(NSUInteger)affairID;

+(NSUInteger)getMyAccountID;
+(void)setMyAccountID:(NSUInteger)accountID;

+(NSUInteger)getShopCartID;
+(void)setShopCartID:(NSUInteger)cartID;

+(CGFloat)getKeyboardHeight;
+(void)setKeyboardHeight:(CGFloat)keyboardH;

+(UIColor *)parseColor:(NSString *)hexColor;
+(UIColor *)parseStatusColor:(NSString *)statusStr;

+(void)setCustomAddArray:(NSMutableArray *)customArray;
+(NSMutableArray *)getCustomAddArray;

+(void)setProductShopCartDict:(NSDictionary *)selectedProductDict;
+(NSDictionary *)getProductShopCartDict;

+(NSString *)getLoginGuideName;
+(void)setLoginGuideName:(NSString *)guideName;
+(NSString *)getStoreName;
+(void)setStoreName:(NSString *)storeName;

+(NSString *)getLoginToken;
+(void)setLoginToken:(NSString *)token;

+(NSString *)getLoginUrl;
+(void)setLoginUrl:(NSString *)urlStr;

+(NSString *)getUpYunUrl;
+(void)setUpYunUrl:(NSString *)urlStr;

+(NSString *)getPolicyStr;
+(void)setPolicyStr:(NSString *)urlStr;

+(NSString *)getHeadIconStr;
+(void)setHeadIcon:(NSString *)iconStr;

+(NSString *)getSignatureStr;
+(void)setSignatureStr:(NSString *)urlStr;

+(NSString *)getGuideCodeStr;
+(void)setGuideCodeStr:(NSString *)codeStr;

+(NSString *)getIfShowTextHudStr;
+(void)setIfShowTextHudStr:(NSString *)ifShowHudStr;

+(NSString *)getGuideNameStr;
+(void)setGuideNameStr:(NSString *)nameStr;

+(void)showTextHud:(NSString*)message view:(UIView *)view;
+(void)showIndeterminateHud:(NSString*)text delay:(int)delay view:(UIView *)view;
+(void)hideProgressHUDInternal:(UIView *)view;

+(void)hideTextHudSub;

+(void)showTextHudSub:(NSString*)message view:(UIView *)view;
+(void)showIndeterminateHudSub:(NSString*)text delay:(int)delay view:(UIView *)view;

+(NSString *)floatConvertPercentile:(float)floatValue;
+(NSString *) md5: (NSString *) inPutText;

+ (float) heightForTextView: (UITextView *)textView WithText: (NSString *) strText;

+ (void) resizeForLable: (UILabel *)label WithText: (NSString *) labelText parentView:(UIView *)parentView;

@end
